import ServiceListComp from "containers/increment-service/senior-service-open/service-list"
import OrderConfirm from "containers/increment-service/senior-service-open/order-confirm"
import OrderPay from "containers/increment-service/senior-service-open/order-pay"
import ApplyInvoice from "containers/increment-service/senior-service-open/apply-invoice"
import OpenSetting from "containers/increment-service/senior-service-open/open-setting"
import OrderManagement from "containers/increment-service/order-management/order-management"
import OrderManagementDetail from "containers/increment-service/order-management/order-management-detail"

//帮助中心
const incrementService = {
  key: 'increment-service',
  icon: 'line-chart',
  admin: true,
  tenant: true,
  company: false,
  // 线上下单
  subMenu: [
    {
      key: 'senior-service-open',
      url: '/main/increment-service/senior-service-open',
      components: ServiceListComp,
      icon: 'credit-card',
      admin: true,
      parent: 'increment-service',
      children: {
        //确认订单
        orderConfirm: {
          key: 'order-confirm',
          url: '/main/increment-service/senior-service-open/order-confirm/:id',
          components: OrderConfirm,
          parent: 'senior-service-open'
        },
        //付款
        orderPay: {
          key: 'order-pay',
          url: '/main/increment-service/senior-service-open/order-pay/:orderId',
          components: OrderPay,
          parent: 'senior-service-open'
        },
        //申请开票
        applyInvoice: {
          key: 'apply-invoice',
          url: '/main/increment-service/senior-service-open/apply-invoice/:orderId',
          components: ApplyInvoice,
          parent: 'senior-service-open'
        },
        //开通设置
        openSetting: {
          key: 'open-setting',
          url: '/main/increment-service/senior-service-open/open-setting/:serviceCode',
          components: OpenSetting,
          parent: 'senior-service-open'
        },
      }
    },
    //订单管理
    {
      key: 'order-management',
      url: '/main/increment-service/order-management',
      components: OrderManagement,
      icon: 'bars',
      admin: true,
      parent: 'increment-service',
      children: {
        orderManagementDetail: {
          key: 'order-management-detail',
          url: '/main/increment-service/order-management/order-management-detail/:id',
          components: OrderManagementDetail,
          parent: 'order-management'
        },
      }
    }
  ]
};

export default incrementService

